import { Component, OnInit } from '@angular/core';
import {MesService} from '../../service/mes.service'

@Component({
  selector: 'app-component-communication-child',
  templateUrl: './component-communication-child.component.html',
  styleUrls: ['./component-communication-child.component.css']
})
export class ComponentCommunicationChildComponent implements OnInit {

  msg
  constructor(private messervice:MesService) { 
      this.messervice.getMessage().subscribe(msg=>{
          this.msg=msg
      })
  }

  ngOnInit() {
    
  }

}
